<div>
  @{
     var foo = 1;

     if (foo == 1) {
       foo = 2;
     }
  }
</div>
